﻿using Newtonsoft.Json;

namespace Missbot.Model.MsgInfos
{
    public class GroupInvitedInfo : RootInfo
    {
        [JsonProperty("body")]
        public NotificationBody_GroupInvited Body { get; set; }
    }
    
    public class NotificationBody_GroupInvited
    {
        [JsonProperty("id")]
        public string ID { get; set; }
        
        [JsonProperty("type")]
        public string Type { get; set; }
        
        [JsonProperty("body")]
        public GroupInvitedBody Body { get; set; }
    }

    public class GroupInvitedBody
    {
        [JsonProperty("user")]
        public InstanceUser User { get; set; }
        
        [JsonProperty("type")]
        public string Type { get; set; }
        
        [JsonProperty("invitation")]
        public GroupInvitation Invitation { get; set; }
    }

    public class GroupInvitation
    {
        [JsonProperty("id")]
        public string ID { get; set; }
        
        [JsonProperty("group")]
        public InstanceGroup Group { get; set; }
    }
}